package com.Sleep;
//调用sleep方法实现线程休眠
public class Demo {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("线程休眠之前");
        Thread.sleep(1000);
        System.out.println("线程休眠之后");
    }
}
